UCF STIG Viewer Logo

The default global umask setting must be changed for user applications.


Overview

Finding ID Version Rule ID IA Controls Severity
V-59717 AOSX-10-001015 SV-74147r1_rule Medium
Description
The default global umask setting must be set to '022' for user applications. The setting '022' ensures that user created files and directories will be readable, but not writable, by users that share the same group id. Users with a different group id will not be able to read or write those files. This mitigates the risk that unauthorized users might be able to read and write files saved to the system by user applications.
STIG Date
Apple OS X 10.10 (Yosemite) Workstation Security Technical Implementation Guide 2015-09-21

Details

Check Text ( C-60487r1_chk )
To view the umask setting, run the following command:

awk '{ print $2 }' /etc/launchd-user.conf

If the command produces an error, or the result is not '022', this is a finding.
Fix Text (F-65127r2_fix)
To set the umask setting for user applications, run the following command:

sudo sh -c 'echo 'umask 022' > /etc/launchd-user.conf'